﻿<%@ Page Language="C#" MasterPageFile="~/Shared/MainPage.Master" AutoEventWireup="true" CodeBehind="ContractProfitPutView.aspx.cs" Inherits="Runda.CMS.Portal.ContractManage.ContractProfitPutView" Title="投放合同利润查看" %>

<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
    <link href="../Content/global.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
    
    <script src="../Content/global.js" type="text/javascript"></script>
    <script type="text/javascript">
        function SelectContractItemCalc() {
            if (document.getElementById('<%=txtContractID.ClientID %>').value == "") {
                alert('请选择合同!!'); return;
            }
            var returnValue = openStdDlg("SelectContractItemCalc.aspx?ContractID=" + document.getElementById('<%=txtContractID.ClientID %>').value , "", 800, 600);
            RefreshContractItemCalc();
        }

        function RefreshContractItemCalc() {
            document.getElementById('<%=btnRefresh.ClientID %>').click();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
 
<div class="Container">
    <div style="width:50%;float:left;">
        <table id="Table1" class="find" cellspacing="0" cellpadding="0" border="0"> 
            <tbody>
                <tr>
                    <td class="wizHead" colspan="7">
                       <div style="height:23px;line-height:23px;"><b>销售成本</b></div>
                    </td>
                </tr>
                <tr id="Tr1" height="40">
                    <td class="wizBox1" colspan="7">
                        <table id="Table2" style="table-layout: fixed; font-size: 9pt" height="100%" cellspacing="0" cellpadding="0" width="100%">
                            <col width="200" align="right"> 
                            <col> 
                            <tr style="height:25px">
                            <td>机器成本:</td><td>
                                                <asp:Label ID="lblItemCost" runat="server" Text=""></asp:Label>
                                                </td>
                            </tr> 
                            <tr style="height:25px">
                            <td>配套商品成本:</td><td>
                                <asp:TextBox ID="txtPresentCost" runat="server" CssClass="input" Width="120px" Enabled="false"></asp:TextBox>
                                </td>
                            </tr> 
                             <tr style="height:25px">
                            <td>资金成本:</td><td>
                                 <asp:TextBox ID="txtCapitalCost" Height = "20px" runat="server" CssClass="input" Width="120px"></asp:TextBox>
                                            &nbsp;<asp:Button ID="btnSave" Height ="20px" runat="server" onclick="btnSave_Click" Text="保存" CssClass="button" Visible="false"/>
                                 </td>
                            </tr>
                             <tr style="height:25px">
                            <td>其他成本：</td><td>
                                <rad:RadNumericTextBox ID="radtxtOtherCost" runat="server" width = "120px" Enabled="false">
<NumberFormat AllowRounding="True"></NumberFormat>
                                 </rad:RadNumericTextBox>
                               　</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </tbody>
    </table>
    </div>
    <div style="width:auto;float:left;margin-left:5px;">
        <table id="appFind" class="find" cellspacing="0" cellpadding="0" border="0"> 
            <tbody>
                <tr>
                    <td class="wizHead" colspan="7">
                       <div style="height:23px;line-height:23px;"><b>销售收入</b></div>
                    </td>
                </tr>
                <tr id="__appFind_trQuery" height="40">
                    <td class="wizBox1" colspan="7">
                        <table id="__appFind_tbQuery1" style="table-layout: fixed; font-size: 9pt" height="100%" cellspacing="2" cellpadding="2" width="100%">
                            <col width="200" align="right"> 
                            <col> 
                            <tr style="height:25px">
                                <td>
                                    销售配套试剂利润:
                                </td>
                                <td> 
                                    <asp:Label ID="lblContractTotalPrice" runat="server" Text=""></asp:Label><input id="Button1" type="button" value="配套试剂" class="button" onclick="SelectContractItemCalc();" style="display:none"/>
                                </td>                                 
                            </tr>
                            <tr style="height:25px"><td>设备收入</td><td>
                                <asp:Label ID="lblOthorMachineIncome" runat="server" Text=""></asp:Label></td></tr>
                            <tr style="height:25px"><td>保修收入</td><td><asp:Label ID="lblOthorMaintainIncome" runat="server" Text=""></asp:Label></td></tr>
                            <tr style="height:25px"><td>租赁收入</td><td><asp:Label ID="lblOthorRentIncome" runat="server" Text=""></asp:Label></td></tr>
                        </table>
                    </td>
                </tr>
            </tbody>
    </table>
    </div>
</div>

<div class="Container">
     <table id="Table3" class="find" cellspacing="0" cellpadding="0" border="0"> 
        <tbody>
            <tr style="height:25px">
                <td class="wizHead" colspan="7">
                   <div style="height:23px;line-height:23px;"><b>利润</b></div>
                </td>
            </tr>
            <tr id="Tr2" height="40">
                <td class="wizBox1" colspan="7">
                    <table id="Table4" style="table-layout: fixed; font-size: 9pt" height="100%" cellspacing="0" cellpadding="0" width="100%">
                        <col width="200" align="right"> 
                        <col> 
                        <tr style="height:25px">
                            <td>
                                销售毛利润:
                            </td>
                            <td> 
                                <asp:Label ID="lblProfit" runat="server" Text=""></asp:Label>
                            </td>                                 
                        </tr>
                        <tr style="height:25px">
                        <td>销售毛利润率:</td><td>
                            <asp:Label ID="lblProfitRate" runat="server" Text=""></asp:Label>
                            </td>
                        </tr> 
                    </table>
                </td>
            </tr>
        </tbody>
    </table>   
</div>

<asp:Button ID="btnRefresh" runat="server" Text="刷新" CssClass="button" onclick="btnRefresh_Click" />
    <asp:HiddenField ID="txtContractID" runat="server" />
    
</asp:Content>
